<%--
  Created by IntelliJ IDEA.
  User: maicss
  Date: 2022/4/29
  Time: 下午9:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
    <link rel="icon" href="resources/favicon.ico">
    <link href="style/login.css" type="text/css" rel="stylesheet">
</head>
<body>
<%--访问登录页面时删除登录状态--%>
<% session.removeAttribute("user"); %>
<div class="mainbox">
<iframe src="login/loginPage.jsp" class="loginbox"></iframe>
</div>
<script>
    let ifme = document.getElementsByClassName("loginbox")[0]
    let mainbox = document.getElementsByClassName("mainbox")[0]
    ifme.addEventListener("load",function (){
        mainbox.style.top = "50%"
    })
</script>

</body>
</html>
